import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif


// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

import mixin from '@/common/mixin/mixin'
import filter from '@/common/filter/filter'
import mixLoading from "@/components/mix-loading/mix-loading.vue"
import mixModal from "@/components/mix-modal/mix-modal.vue"
import mixModalS from "@/components/mix-modal/mix-modal-s.vue"
import sPullScroll from "@/components/s-pull-scroll/index.vue"
Vue.mixin(mixin);
Vue.component('mix-loading', mixLoading);
Vue.component('mix-modal', mixModal);
Vue.component('mix-modal-s', mixModalS);
Vue.component('s-pull-scroll', sPullScroll);
import { msg, isLogin, debounce, throttle, prePage, checkStr } from '@/common/js/util'
Vue.prototype.$util = { msg, isLogin, debounce, throttle, prePage, checkStr }